package com.zcb.agrimarket.mapper;

import com.zcb.agrimarket.pojo.Arrange;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcb.agrimarket.pojo.StudentApplyLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author KarrySmile
* @description 针对表【arrange(排课表)】的数据库操作Mapper
* @createDate 2024-04-05 22:51:37
* @Entity generator.domain.Arrange
*/
@Mapper
public interface ArrangeMapper extends BaseMapper<Arrange> {
    @Select("select * from arrange where lab_id=#{labId} and semester_id=#{semesterId} and week=#{week} and day=#{day} and session=#{session}")
    Arrange selectByMe(Long labId, Long semesterId, Integer week, Integer day, Integer session);


    @Select("select * from arrange where lab_id=#{labId} and semester_id=#{semesterId} and week=#{week} and day=#{day} and session=#{session}")
    Arrange selectByStudentApplyLog(StudentApplyLog studentApplyLog);
}




